package com.qzxy.premiumhotelsystem.service;

import com.github.pagehelper.PageInfo;
import com.qzxy.premiumhotelsystem.domain.entity.Logs;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author iQNRen
* @description 针对表【logs】的数据库操作Service
* @createDate 2024-09-18 11:20:26
*/
public interface LogsService extends IService<Logs> {
    /**
     * 查询所有日志
     * @return
     */
    List<Logs> allLogs(String sortOrder);

    /**
     * 分页查询日志
     * @param pageSize
     * @param limit
     * @return
     */
    PageInfo<Logs> allLogsForPage(Integer pageSize, Integer limit,String sortOrder);

    /**
     * 插入日志
     * @param logLevel
     * @param logUser
     * @param logContent
     * @return
     */
    boolean create(String logLevel,String logUser,String logContent);

    /**
     * 根据id删除日志
     * @param logId
     * @return
     */
    boolean delByLogIdBoolean(String logId);

    /**
     * 根据id更新日志
     * @param logs
     * @return
     */
    boolean updateIdBoolean(Logs logs);
}
